#pragma config(Hubs,  S1, HTMotor,  HTServo,  none,     none)
#pragma config(Sensor, S2,     ,                    sensorI2CHiTechnicAccel)
#pragma config(Motor,  mtr_S1_C1_1,     motorD,        tmotorNormal, openLoop, encoder)
#pragma config(Motor,  mtr_S1_C1_2,     motorE,        tmotorNormal, openLoop, reversed, encoder)
#pragma config(Servo,  srvo_S1_C2_1,    ,                     tServoStandard)
#pragma config(Servo,  srvo_S1_C2_2,    ,                     tServoStandard)
#pragma config(Servo,  srvo_S1_C2_3,    ,                     tServoStandard)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

#include "AdvancedSensors.c"
#include "JoystickDriver.c"
void initializeRobot()
{
  wait1Msec(1000);
  ClearTimer(T1);
  ClearTimer(T2);
  servoChangeRate[servo1] = 5;
  servoChangeRate[servo2] = 5;
  servoChangeRate[servo3] = 5;
  servo[servo1] = 0;
  servo[servo2] = 30;
  servo[servo3] = 30;
  wait1Msec(1000);
  nPidUpdateInterval = 1;
  return;
}

task main()
{
  initializeRobot();

  //waitForStart();

}
